﻿using HalconDotNet;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LD.Vision
{
    public class TemplateParamModel
    {
        /// <summary>
        /// 最小分数
        /// </summary>
        public HTuple MinScore { get; set; }
        /// <summary>
        /// 匹配个数
        /// </summary>
        public int NumMatches { get; set; } = 1;
        /// <summary>
        /// 重叠部分
        /// </summary>
        public double MaxOverlap { get; set; } = 0.5;
        /// <summary>
        ///精度 
        /// </summary>
        public HTuple SubPixel { get; set; } = new HTuple("least_squares");
        /// <summary>
        /// 金字塔
        /// </summary>
        public HTuple NumLevels { get; set; } = new HTuple(0);
        /// <summary>
        /// 自信度
        /// </summary>
        public double Greediness { get; set; } = 0.7;
        /// <summary>
        /// 起始角度
        /// </summary>
        public HTuple StartRad { get; set; } = new HTuple(-180);
        /// <summary>
        /// 结束角度
        /// </summary>
        public HTuple EndRad { get; set; } = new HTuple(180.0);
        /// <summary>
        /// 极性
        /// </summary>
        public string Polarity { get; set; } = "use_polarity";//"ignore_global_polarity";  
    }
}
